package ig.metrica.origenesdedatos;

import java.rmi.RemoteException;
import java.sql.SQLException;
import java.util.Collection;
import javax.ejb.CreateException;

import javax.ejb.EJBHome;
import javax.ejb.FinderException;
import javax.naming.NamingException;

public interface OrigenDeDatosHome extends EJBHome {
	public OrigenDeDatos create(java.lang.Integer id, java.lang.String entidad, java.lang.String campos, java.lang.String query, java.lang.Integer idconexion,java.lang.Integer consecutivo) throws CreateException, RemoteException;
        
	public OrigenDeDatos findByPrimaryKey(OrigenDeDatosPK pk) throws FinderException, RemoteException;
	
	public OrigenDeDatos findByNombreEntidad(String entidad) throws FinderException, RemoteException;
	
	public Collection findByAll() throws FinderException, RemoteException;
        
//        public Collection findByAllDTO() throws FinderException, RemoteException;
}
